package com.sailfish.template.infra.mapper.project;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sailfish.template.infra.entity.Project;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author XIAXINYU3
 * @date 2021/11/2
 */
@Mapper
public interface ProjectMapper extends BaseMapper<Project> {
    /**
     * 根据id查询项目
     *
     * @param iamProjectId 项目id
     * @return 项目
     */
    Project findOne(@Param("iamProjectId") Long iamProjectId);

    /**
     * 分页查询测试用例
     *
     * @param page     分页对象
     * @return 测试用例
     */
    IPage<Project> page(Page page);
}
